:: 合并 指定分支到目标分支。例如：

:: 合并 master 到 dev 分支
:: ./merge master dev
@echo off
chcp 65001

for %%i in ( "../inchat", "../inchat-im", "../inchat-trade", "../inchat-admin", "../inchat-user" ) do (
    echo 切换 %%i 到 %1 分支
    cd %%i
    git checkout %2
    git pull
    git merge %1
)

:: 回到原目录
cd ../inchat
